package com.example.academic_affairs_system.model.vo.classStudent;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 班级学生视图对象
 *
 * @author hjx
 * @since 2023/02/03 10:58 PM
 */
@Data
@Builder
@ApiModel("班级学生视图对象")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClassStudentVO {
  @ApiModelProperty("学号")
  private Long studentNumber;

  @ApiModelProperty("学生 id")
  private Long userId;

  @ApiModelProperty("班级 id")
  private Long classId;

  @ApiModelProperty("用户昵称")
  private String nickname;

  @ApiModelProperty("身份证")
  private String idCard;

  @ApiModelProperty("年龄")
  private Integer age;

  @ApiModelProperty("性别")
  private String sex;

  @ApiModelProperty("联系方式")
  private String concat;

  @ApiModelProperty("家庭联系方式")
  private String familyConcat;

  @ApiModelProperty("籍贯")
  private String origin;

  @ApiModelProperty("家庭住址")
  private String address;

  @ApiModelProperty("最后一次登录时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime lastTime;

  @ApiModelProperty("职位")
  private String position;

  @ApiModelProperty("职位描述")
  private String positionDesc;

  @ApiModelProperty("评价")
  private String rating;
}
